package cn.didi.feidi.javabackend.mysql.jpa.repository;

import cn.didi.feidi.javabackend.mysql.jpa.user.User;
import cn.didi.feidi.javabackend.mysql.jpa.waterDeliver.WaterDeliver;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * Created by lindanpeng on 2017/7/16.
 */
@Repository
@EntityScan(basePackages ={"cn.didi.feidi.javabackend.mysql.jpa.waterDeliver"})
public interface WaterDeliverJpaRep extends JpaRepository<WaterDeliver, String> {

    public WaterDeliver findByPhoneNumber(String phoneNumber);
    public String getPasswordByPhoneNumber(String phoneNumber);

}
